3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate quaternion transforms. A quaternion transform rotates and twists an object according to the mathematical properties of quaternions.
You can use the Q3QuaternionTransform_New function to create a new quaternion transform.
TQ3TransformObject Q3QuaternionTransform_New (TQ3Quaternion *quaternion);
The Q3QuaternionTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeQuaternion using the data passed in the quaternion parameter. The data you pass in the quaternion parameter is copied into internal QuickDraw 3D data structures. If QuickDraw 3D cannot allocate memory for those structures, Q3QuaternionTransform_New returns the value NULL .
You can use the Q3QuaternionTransform_Submit function to submit a quaternion transform without creating an object or allocating memory.
TQ3Status Q3QuaternionTransform_Submit (
TQ3Quaternion *quaternion,
TQ3ViewObject view);
You can use the Q3QuaternionTransform_Get function to query the private data stored in a quaternion transform.
TQ3Status Q3QuaternionTransform_Get (
TQ3TransformObject transform,
TQ3Quaternion *quaternion);
You can use the Q3QuaternionTransform_Set function to set new private data for a quaternion transform.
TQ3Status Q3QuaternionTransform_Set (
TQ3TransformObject transform,
TQ3Quaternion *quaternion);
Previous | QD3D Book | Overview | Chapter Contents | Next |